package com.kaifamiao.schema;

import org.aspectj.lang.JoinPoint;

import java.time.LocalDateTime;

public class TimeAdvice {

    public void before( JoinPoint jp ) {
        String name = jp.getSignature().getName();
        System.out.println( name + " - " + LocalDateTime.now() );
    }

    public void after( JoinPoint jp ) {
        String name = jp.getSignature().getName();
        System.out.println( name + " - " + LocalDateTime.now() );
    }

}
